// 项目管理
import { role } from '@/utils/const/constant'

export default (layout) => {
  return {
    path: '/project',
    component: layout,
    redirect: '/project/index',
    meta: {
      title: 'project',
      icon: 'xiangmu_xiangmuguanli',
      roles: [role.admin, role.manager, role.user]
    },
    children: [
      {
        path: '/project/index',
        component: () =>
          import(/* webpackChunkName: "project" */ '@/views/project/index'),
        name: 'projectList',
        meta: {
          title: 'projectList',
          icon: 'liebiao',
          roles: [role.admin, role.manager, role.user]
        }
      }
      // {
      //   path: '/project/regist',
      //   component: () =>
      //     import(/* webpackChunkName: "project" */ '@/views/project/regist'),
      //   name: 'projectRegist',
      //   meta: {
      //     title: 'projectRegist',
      //     icon: 'xinjianxiangmu',
      //     roles: [role.admin, role.manager, role.user]
      //   }
      // }
    ]
  }
}
